//
//  ZWWebView.h
//  WebviewProgress
//
//  Created by apple on 14-9-1.
//  Copyright (c) 2014年 thomas. All rights reserved.
//

#import <UIKit/UIKit.h>

@class ZWWebView;
@protocol RCBookWebViewDelegate <NSObject,NSCoding>

@optional
-(void)bookWebView:(ZWWebView *)webView didReceiveMainFrameTitle:(NSString*)title;

@end

@interface ZWWebView : UIWebView
@property (nonatomic,assign) id<RCBookWebViewDelegate> bookDelegate;

@property (nonatomic,unsafe_unretained) id bookDocumentView;
@property (nonatomic,unsafe_unretained) id bookWebView;

-(double)estimatedProgress;
-(void)cleanForDealloc;
-(void)setMaintainsBackForwardList:(BOOL)maintain;
-(NSURL*)mainFrameURL;
@end
